package com.ruoyi.dynamic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 列字段的验证规则对象 dynamic_column_rules
 * 
 * @author ningtao
 * @date 2022-11-27
 */
public class DynamicColumnRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 是否必填(1是) */
    private String isRequired;

    /** 是否验证数字(1是) */
    private String isNumber;

    /** 是否验证整数(1是) */
    private String isInteger;

    /** 验证最小值(1是) */
    private Integer minValue;

    /** 验证最大值(1是) */
    private Integer maxValue;

    /** 是否验证是邮箱(1是) */
    private String isEmail;

    /** 是否验证是否是有效的网址(1是) */
    private String isUrl;

    /** 是否验证是日期(1是) */
    private String isDate;

    /** 是否验证是时间(1是) */
    private String isTime;

    /** 自定义的验证函数 */
    private String func;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIsRequired(String isRequired) 
    {
        this.isRequired = isRequired;
    }

    public String getIsRequired() 
    {
        return isRequired;
    }
    public void setIsNumber(String isNumber) 
    {
        this.isNumber = isNumber;
    }

    public String getIsNumber() 
    {
        return isNumber;
    }
    public void setIsInteger(String isInteger) 
    {
        this.isInteger = isInteger;
    }

    public String getIsInteger() 
    {
        return isInteger;
    }
    public void setMinValue(Integer minValue) 
    {
        this.minValue = minValue;
    }

    public Integer getMinValue() 
    {
        return minValue;
    }
    public void setMaxValue(Integer maxValue) 
    {
        this.maxValue = maxValue;
    }

    public Integer getMaxValue() 
    {
        return maxValue;
    }
    public void setIsEmail(String isEmail) 
    {
        this.isEmail = isEmail;
    }

    public String getIsEmail() 
    {
        return isEmail;
    }
    public void setIsUrl(String isUrl) 
    {
        this.isUrl = isUrl;
    }

    public String getIsUrl() 
    {
        return isUrl;
    }
    public void setIsDate(String isDate) 
    {
        this.isDate = isDate;
    }

    public String getIsDate() 
    {
        return isDate;
    }
    public void setIsTime(String isTime) 
    {
        this.isTime = isTime;
    }

    public String getIsTime() 
    {
        return isTime;
    }
    public void setFunc(String func) 
    {
        this.func = func;
    }

    public String getFunc() 
    {
        return func;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("isRequired", getIsRequired())
            .append("isNumber", getIsNumber())
            .append("isInteger", getIsInteger())
            .append("minValue", getMinValue())
            .append("maxValue", getMaxValue())
            .append("isEmail", getIsEmail())
            .append("isUrl", getIsUrl())
            .append("isDate", getIsDate())
            .append("isTime", getIsTime())
            .append("func", getFunc())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
